package com.network.utils.demo.api;



import com.network.utils.demo.TaskSourceListBean;
import com.network.utils.demo.http.BaseResponseBean;

import org.json.JSONObject;

import java.util.Map;

import io.reactivex.Observable;
import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.HeaderMap;
import retrofit2.http.Headers;
import retrofit2.http.POST;
import retrofit2.http.PartMap;
import retrofit2.http.QueryMap;
import retrofit2.http.Url;

/**
 * 项目创建人:
 * 创建人:fargo(罗)
 * Created by app on 2020/9/15  —————— 16:05
 * 作用:
 * 备注:
 * @author android
 * */
public interface AppUpDataApi {

    @GET(URLAddress.ME_GET_NEW_VERSION)
    Observable<BaseResponseBean> getAppInfo(@QueryMap Map<String,String> map);

    @FormUrlEncoded
    @POST
    Observable<Object> doPost(@Url String url, @FieldMap Map<String,String> map, @HeaderMap Map<String,String> header);

    @POST
    Observable<Object> doPostBody(@Url String url, @Body RequestBody map, @HeaderMap Map<String,String> header);

    @POST
    Observable<TaskSourceListBean> doPostXmlTest(@Url String url);

    /**
     * 内部登录
     */
    @POST("tboMemberInfo/loginOnlyUsePhone")
    Observable<TaskSourceListBean> doLoginNB(@Body Map<String, String> params, @HeaderMap Map<String, String> header);

}
